/*
 * 文件名称: App.java Copyright 2011-2016 Ximalaya All right reserved.
 */
package com.zxy.jdbcdemo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @author Bird Zhang
 */
public class App {
  public static void main(String[] args) {
    App t = new App();
    try {
      System.out.println(t.testTry());
    } catch (Exception e) {
      System.out.println("this is exception");
    }
  }

  public int testTry() throws Exception {
    FileInputStream fi = null;
    try {
      fi = new FileInputStream("");

    } catch (FileNotFoundException fnfe) {
      System.out.println("this is FileNotFoundException");
      return 1;
      // return 1; //次行不注释就报错
    } finally {
      System.out.println("this is finally");
//      return 2;
    }
    return 0;
  }
  
}
